package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author li.shiying
 * @since 2023-09-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_operate_record")
@ApiModel(value="OperateRecord对象", description="")
public class OperateRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "操作类型")
    @TableField("operate_type")
    private Integer operateType;

    @ApiModelProperty(value = "菜单")
    @TableField("menu")
    private String menu;

    @ApiModelProperty(value = "操作详情")
    @TableField("detail")
    private String detail;

    @ApiModelProperty(value = "操作人code")
    @TableField("operator_code")
    private String operatorCode;

    @ApiModelProperty(value = "操作人姓名")
    @TableField("operator_name")
    private String operatorName;

    @ApiModelProperty(value = "通用信息")
    @TableField("common_info")
    private String commonInfo;

    @ApiModelProperty(value = "是否删除，1-删除，0-未删除")
    @TableField("is_deleted")
    private Boolean isDeleted;

    @ApiModelProperty(value = "组织id")
    @TableField("sp_id")
    private String spId;

    @ApiModelProperty(value = "操作结果 0-失败 1-成功 2-部分成功")
    @TableField("operate_result")
    private Integer operateResult;

    @ApiModelProperty(value = "策略规则类型")
    @TableField("strategy_type")
    private String strategyType;

    @ApiModelProperty(value = "客户id")
    @TableField("consumerId")
    private String consumerId;

}
